<form class="form-horizontal" name="type_form" ng-submit="do_upsert()">
    <div class="modal-header">
        <a class="close" ng-click="close()">&times;</a>

        <div class="input-prepend input-append">
            <h4>{{ title }}</h4>
        </div>
    </div>
    <div class="modal-body">
        <div class="control-group">

            <label for="name" class="control-label">名称：</label>

            <div class="controls">
                <input type="text" required ng-model="name" class="input" ng-maxlength="64"/>
                <br><i class="icon-info-sign"/>名称的最大长度为64
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <a data-dismiss="modal" class="btn" ng-click="close()">关闭</a>
        <button type="submit" ng-disabled="!type_form.$valid" class="btn btn-primary">保存</button>
    </div>
</form>